package de.clue.corpus.twitter.reader;

public class ReplaceTwitterUsernameTextWorker implements ITextWorker {

    @Override
    public String process(String text) {
        
        String internalText = text;
        
        //internalText = internalText.replaceAll("(^|\\s)@(\\w+)", "BENUTZERNAME");        
        internalText = internalText.replaceAll("(^|[^a-zA-Z0-9_])@([a-zA-Z0-9_]{1,20})(?=(.|$))", " BENUTZERNAME");        
        return internalText;
        

    }

}
